package com.gxl.design.abstractfactorypattern.factory;

public class FactoryKind {

    public static AbstractFactory getFactory(String kind){
        if (kind.equals("mirror")){
            return new MirrorFactory();
        }
        if (kind.equals("glass")){
            return new GlassFactory();
        }
        return null;
    }
}
